export default {
  state: {
    userInfo: {}
  },
  getters: {
    userInfo: state => state.userInfo
  },
  actions: {
    /**
     * 获取用户信息
     */
    getUserInfo ({ state }, payload) {
      return state.userInfo
    },

    /**
     * 设置用户信息
     */
    setUserInfo ({ state }, payload) {
      state.userInfo = payload
    }
  }
}
